public class FinalClass {
    // 属性
    private String name;
    public final int age = 10;
  
    public final void setName(String name) {
      this.name = name;
    }
  
    public void setAge() {
      name = "zs";
      age = 20;
    }
  
  }